public class JavaBean {
    String name;
    String password;
    String mailbox;

    public String getName() {
        return name;
    }

    public String getPassword() {
        return password;
    }

    public String getMailbox() {
        return mailbox;
    }
    public void setName(String name) {
        this.name = name;
    }
    public void setPassword(String password) {
        this.password = password;
    }
    public void setMailbox(String mailbox) {
        this.mailbox = mailbox;
    }
    String gender;
    int age;
    public String getGender() {
        return gender;
    }
    public int getAge() {
        return age;
    }
    public void setGender(String gender) {
        this.gender = gender;
    }
    public void setAge(int age) {
        this.age = age;
    }
    public void show() {
        System.out.println("name:" + name);
        System.out.println("password:" + password);
        System.out.println("mailbox:" + mailbox);
        System.out.println("gender:" + gender);
        System.out.println("age:" + age);
    }
    public JavaBean() {
    }
    public JavaBean(String name, String password, String mailbox, String gender, int age) {
        this.name = name;
        this.password = password;
        this.mailbox = mailbox;
        this.gender = gender;
        this.age = age;
    }
}
